package com.liwbn.rbac.service;

import java.util.List;

import com.liwbn.rbac.core.generic.GenericService;
import com.liwbn.rbac.core.orm.mybatis.Page;
import com.liwbn.rbac.model.User;
import com.liwbn.rbac.model.UserExample;
import com.liwbn.rbac.vo.UserVO;

public interface UserService extends GenericService<User, Long> {

    /**
     * 分页数据查询
     * 
     * @param page
     * @param example
     * @return
     */
    public Page<User> selectPage(Page<User> page, UserExample example);

    /**
     * @param list
     * @return 插入记录条数
     */
    public int insertBatch(List<User> list);

    /**
     * 用户完整记录查询
     * 
     * @param userName
     * @return
     */
    public UserVO selectUserPermissionByUserName(String userName);

    public User login(String userName, String password);
}
